package app;

import javax.swing.JFrame;

import solve.mazesolve;
import generator.mazegen;
import gui.mazePanel;

public class aMAZEing
{

	private static JFrame frame;
	
	static mazePanel mpMazePanel;
	
	/**
	 * @param args
	 */
	public static void main(String[] args) 
	{
		frame = new JFrame();
		frame.setSize(650,670);
		
		mazegen mg = new mazegen(frame);
		mpMazePanel = new mazePanel(mg.getMaze());
		
		//frame = new JFrame();
		//frame.setSize(329,351);
		frame.add(mpMazePanel);
		frame.setTitle("aMAZEing v1.0");
		frame.setResizable(false);
		frame.setVisible(true);
		
		System.out.println("###   Creating maze   ###");
		//mazegen mg = new mazegen(frame);
		mg.generate();
		System.out.println("###   Done creating maze   ###");
		
		/*
		frame = new JFrame();
		frame.setSize(329,351);
		mpMazePanel = new mazePanel(mg.getMaze());
		frame.add(mpMazePanel);
		frame.setTitle("aMAZEing v1.0");
		frame.setResizable(false);
		frame.setVisible(true);
		*/
				
		System.out.println("###   Initiating Solve   ###");
		mazesolve ms = new mazesolve(mg.getMaze(),frame);
		System.out.println("###" + ms.solve() + "###");
		frame.repaint();
	}

}
